<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<link rel="stylesheet" type="text/css" href="/css/notice.css"/>
<script type="text/javascript" src="/js/notice.js"></script>

<input type="hidden" name="noticeSeq" value="<s:property value="noticeDetail.noticeSeq"/>"/>

<!-- 오른쪽 내용 시작 -->
      <dl class="Right_Contents_area">
        <dd class="Center_Top_title"> <span class="top_title"><img src="/images/notice/SubContents_Tit_01.gif" width="370" height="42" alt="공지사항" /></span> <span class="top_navi">HOME > 공지사항</span></dd>
        <dd class="Right_Contents_Notice">&nbsp;</dd>
        <dd class="Center_Top_contents">
          <div id="LIst_Zone">
            <dl>
              <dd>
              <table class="viewboard" border="1" cellspacing="0" summary="글 내용을 표시">
                <caption> 글 읽기</caption>
                <colgroup><col width="50px"><col width="390px"><col width="50px"><col width="210px"></colgroup>
                <thead>
                  <tr>
                    <th scope="row"><span class="viewboard_title">제&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;목</span></th>
                    <td ><s:property value="noticeDetail.title"/></td>
                    <th scope="row"><span class="viewboard_title">작성일자</span></th>
                    <td><s:property value="noticeDetail.writeTime"/></td>
                  </tr>
                  <tr>
                    <th scope="row"><span class="viewboard_title">글 쓴 이</span></th>
                    <td><s:property value="noticeDetail.userName"/></td>
                    <th scope="row"><span class="viewboard_title">조&nbsp;회&nbsp;수</span></th>
                    <td><s:property value="noticeDetail.readCount"/></td>
                  </tr>              
                </thead>
                <tbody>
                  <tr>
                    <th scope="row"><span class="viewboard_title">첨부파일</span></th>
                    <td colspan="3">
                    	<!-- 
                    	<s:if test="%{noticeDetail.uploadFileName != null}">
	                    	<img src="/images/notice/icon_file.gif" width="11" height="11" alt="첨부파일" />
	                    	<s:url id="download" namespace="/common" action="fileDownload.desk" includeParams="none">
	                       		<s:param name="fileName"><s:property value="noticeDetail.uploadFileName"/></s:param>
	                       		<s:param name="filePath"><s:property value="noticeDetail.pathName"/></s:param>
	                       	</s:url>
	                       	<s:a href="%{download}"><s:property value="noticeDetail.uploadFileName"/></s:a>
                    	</s:if>
                    	-->
                    	<s:if test="%{noticeDetail.uploadFileName != null}">
	                      		<form name="form_file_download" method="POST" action="/common/fileDownload.desk">
		                      		<input type="hidden" name="fileName" value="<s:property value="noticeDetail.uploadFileName"/>"/>
		                      		<input type="hidden" name="filePath" value="<s:property value="noticeDetail.pathName"/>"/>
	                      		</form>
	                      		<img src="/images/notice/icon_file.gif" width="11" height="11" alt="첨부파일" /> 
	                      		<span class="download" style="cursor:pointer;"><s:property value="noticeDetail.uploadFileName"/></span>
	                    </s:if>
	                    
                    </td>
                  </tr>                 
                  <tr>
                    <td class="cont" colspan="4"><s:property value="noticeDetail.content" escape="false"/></td>
                  </tr>
                  <tr>
                    <td colspan="4" class="line"></td>
                  </tr>              
                </tbody>
              </table>              
              </dd>               
            </dl> 
            <dl class="List_Btn_area"><!-- 버튼 부분 -->
             <dd class="Right_Zone">
             	<s:if test="#authCode == 'ADMIN'">
	             	<a href="/notice/noticeModifyForm.desk?noticeSeq=<s:property value="noticeDetail.noticeSeq"/>"><img src="/images/notice/btn_edit.gif" alt="수정" width="60" height="26" border="0" /></a>&nbsp;
	             	<img src="/images/notice/btn_del.gif" id="btn_notice_del" alt="삭제" width="54" height="26" border="0" style="cursor:pointer;"/></a>&nbsp;
	             </s:if>
	             
	             	<a href="/notice/noticeList.desk"><img src="/images/notice/btn_list.gif" alt="목록" width="52" height="26" border="0" /></a>
             </dd>
            </dl><!-- 버튼 부분 -->          
          </div>
        </dd>
      </dl>
      <!-- 오른쪽 내용 끝 --> 
    </div>
  </div>
  <!-- center 나누어 지는 부분 끝 --> 
</div>